<?php

namespace app\speedDating\interfaces;

interface KeyName
{

    /*
        服务
     */
    const AUTHORIZATION = 'authorization';  //jwt保存字段名

    /*
        缓存
     */
    const CACHE_DRIVER = 'redis';

    /** @category 服务空间 */
    const MODULE_CACHE = 'speed_dating:';

    /** @category 会员空间 */
    const MEMBER_CACHE = self::MODULE_CACHE . "member:";
    //JWT详情
    const MEMBER_CACHE_JWT_INFO = self::MODULE_CACHE . "member:JWT:";

    /** @category 订单空间 */
    const ORDER_CACHE = self::MODULE_CACHE . "order:";
    //创建订单的参数详情
    const ORDER_CACHE_PARAMS = self::ORDER_CACHE . "param:";

    /** @category 统计空间 */
    const COUNT_CACHE = self::MODULE_CACHE . "count:";
    //新订单统计
    const COUNT_CACHE_NEW_ORDER = self::COUNT_CACHE . "order";
    //新会员统计
    const COUNT_CACHE_NEW_MEMBER = self::COUNT_CACHE . "member";
}